﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/admin.master" AutoEventWireup="true"
    CodeFile="tax-edit.aspx.cs" Inherits="admin_tax_edit" %>
<%@ Register Namespace="ECommerce.Library.Web" TagPrefix="ucc" %>
<%@ Register Src="~/controls/wucAdminValidator.ascx" TagName="AdminValidator" TagPrefix="wuc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="AdminHeaderContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMiddleContent" runat="Server">
    <div class="admin-function-top inline">
     <ucc:ResponseMessage ID="uccResponseMessage" runat="server"></ucc:ResponseMessage>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableClientScript="true"
            DisplayMode="BulletList" ShowMessageBox="true" HeaderText="Please correct the following:"
            CssClass="adminValidator" Width="250px" />
        <fieldset>
            STAX_CODE:<br />
            <asp:TextBox ID="STAX_CODETextBox" runat="server" CssClass="text" />
            <br />
            STAX_DESC:<br />
            <asp:TextBox ID="STAX_DESCTextBox" runat="server" CssClass="text" />
            <br />
            TAX_FRT/ TF_STATE/ TF_COUNTY/ TF_CITY:
            <br />
            <asp:DropDownList ID="TAX_FRTDropDown" runat="server" CssClass="text">
                <asp:ListItem Value="0" Text="NA"></asp:ListItem>
                <asp:ListItem Value="Y" Text="Y"></asp:ListItem>
                <asp:ListItem Value="N" Text="N"></asp:ListItem>
            </asp:DropDownList>
            <asp:DropDownList ID="TF_STATEDropDown" runat="server" CssClass="text">
                <asp:ListItem Value="0" Text="NA"></asp:ListItem>
                <asp:ListItem Value="Y" Text="Y"></asp:ListItem>
                <asp:ListItem Value="N" Text="N"></asp:ListItem>
            </asp:DropDownList>
            <asp:DropDownList ID="TF_COUNTYDropDown" runat="server" CssClass="text">
                <asp:ListItem Value="0" Text="NA"></asp:ListItem>
                <asp:ListItem Value="Y" Text="Y"></asp:ListItem>
                <asp:ListItem Value="N" Text="N"></asp:ListItem>
            </asp:DropDownList>
              <asp:DropDownList ID="TF_CITYDropDown" runat="server" CssClass="text">
                <asp:ListItem Value="0" Text="NA"></asp:ListItem>
                <asp:ListItem Value="Y" Text="Y"></asp:ListItem>
                <asp:ListItem Value="N" Text="N"></asp:ListItem>
            </asp:DropDownList>
            <br />
          
            VERTEX_UPDT_DATE:<br />
            <asp:TextBox ID="VERTEX_UPDT_DATETextBox" runat="server" CssClass="text" />
            <br />
            VERTEX_UPDT_NUM:<br />
            <asp:TextBox ID="VERTEX_UPDT_NUMTextBox" runat="server" CssClass="text" />
            <br />
            VERTEX_EFF_DATE:<br />
            <asp:TextBox ID="VERTEX_EFF_DATETextBox" runat="server" CssClass="text" />
            <br />
            STAX_P_A:<br />
            <asp:TextBox ID="STAX_P_ATextBox" runat="server" CssClass="text" />
            <br />
            ACCR_S_A:<br />
            <asp:TextBox ID="ACCR_S_ATextBox" runat="server" CssClass="text" />
            <br />
            CITY_STS:<br />
            <asp:TextBox ID="CITY_STSTextBox" runat="server" CssClass="text" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="CITY_STSTextBox"
                ErrorMessage="CITY_STS Required" Display="dynamic" SetFocusOnError="true" EnableClientScript="true"
                Width="1px">
                <wuc:AdminValidator ID="AdminValidator16" runat="server" />
            </asp:RequiredFieldValidator>
            <br />
            AR5_UNUSED_1:<br />
            <asp:TextBox ID="AR5_UNUSED_1TextBox" runat="server" CssClass="text" />
            <br />
            ZIP_STS:<br />
            <asp:TextBox ID="ZIP_STSTextBox" runat="server" CssClass="zipcodetext" />
            <br />
            STATE_STS:<br />
            
             <ucc:StateDropDownList ID="uccSTATE_STS" runat="server" UseFirstItem="true" CssClass="input1"
                Style="width: 155px; background-color: rgb(255, 255, 160);" FirstItemText="None / Other"
                FirstItemValue="NA">
            </ucc:StateDropDownList>
             <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="uccSTATE_STS"
                ErrorMessage="uccSTATE_STS Required" Display="dynamic" SetFocusOnError="true" EnableClientScript="true"
                Width="1px" InitialValue="NA">
                <wuc:AdminValidator ID="AdminValidator17" runat="server" />
            </asp:RequiredFieldValidator>
            <br />
            COUNTY_STS:<br />
            <asp:TextBox ID="COUNTY_STSTextBox" runat="server" CssClass="text" />
            <br />
            AR5_UNUSED_2:<br />
            <asp:TextBox ID="AR5_UNUSED_2TextBox" runat="server" CssClass="text" />
            <br />
            COUNTY_CODE_STS:<br />
            <asp:TextBox ID="COUNTY_CODE_STSTextBox" runat="server" CssClass="text" />
            <br />
        </fieldset>
        <fieldset>
            STATE_DESC:<br />
           <%-- <asp:TextBox ID="STATE_DESCTextBox" runat="server" CssClass="text" />--%>
             <ucc:StateDropDownList ID="uccSTATE_DESC" runat="server" UseFirstItem="true" CssClass="input1"
                Style="width: 155px; background-color: rgb(255, 255, 160);" FirstItemText="None / Other"
                FirstItemValue="NA">
            </ucc:StateDropDownList>
            <br />
            NO_OVRDE_T_C:<br />
            <asp:TextBox ID="NO_OVRDE_T_CTextBox" runat="server" CssClass="text" />
            <br />
            TOTAL_TAX:<br />
            <asp:TextBox ID="TOTAL_TAXTextBox" runat="server" CssClass="text" />
            <br />
            AR5_UNUSED_3:<br />
            <asp:TextBox ID="AR5_UNUSED_3TextBox" runat="server" CssClass="text" />
            <br />
            STAX_RATE:<br />
            <asp:TextBox ID="STAX_RATETextBox" runat="server" CssClass="text" />
            <asp:RequiredFieldValidator ID="rfvTax" runat="server" ControlToValidate="STAX_RATETextBox"
                ErrorMessage="STAX_RATE Required" Display="dynamic" SetFocusOnError="true" EnableClientScript="true"
                Width="1px">
                <wuc:AdminValidator ID="AdminValidator1" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revTax" ControlToValidate="STAX_RATETextBox"
                EnableClientScript="true" ErrorMessage="Only decimal value" SetFocusOnError="true"
                ValidationExpression="^([0-9]+)([.]([0-9]{2}))*$">
                <wuc:AdminValidator ID="Validator28" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            MAX_STAX:<br />
            <asp:TextBox ID="MAX_STAXTextBox" runat="server" CssClass="text" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="MAX_STAXTextBox"
                ErrorMessage="MAX_STAX Required" Display="dynamic" SetFocusOnError="true" EnableClientScript="true"
                Width="1px">
                <wuc:AdminValidator ID="AdminValidator2" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator1" ControlToValidate="MAX_STAXTextBox"
                EnableClientScript="true" ErrorMessage="Only decimal value" SetFocusOnError="true"
                ValidationExpression="^([0-9]+)([.]([0-9]{2}))*$">
                <wuc:AdminValidator ID="AdminValidator3" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            COUNTY_TAX_IF_OTHER:<br />
            <asp:TextBox ID="COUNTY_TAX_IF_OTHERTextBox" runat="server" CssClass="text" />
             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="COUNTY_TAX_IF_OTHERTextBox"
                ErrorMessage="COUNTY_TAX_IF_OTHER Required" Display="dynamic" SetFocusOnError="true" EnableClientScript="true"
                Width="1px">
                <wuc:AdminValidator ID="AdminValidator4" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator2" ControlToValidate="COUNTY_TAX_IF_OTHERTextBox"
                EnableClientScript="true" ErrorMessage="Only decimal value" SetFocusOnError="true"
                ValidationExpression="^([0-9]+)([.]([0-9]{2}))*$">
                <wuc:AdminValidator ID="AdminValidator5" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            STATE_TAX_IF_OTHER:<br />
            <asp:TextBox ID="STATE_TAX_IF_OTHERTextBox" runat="server" CssClass="text" />
             <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="STATE_TAX_IF_OTHERTextBox"
                ErrorMessage="STATE_TAX_IF_OTHER Required" Display="dynamic" SetFocusOnError="true" EnableClientScript="true"
                Width="1px">
                <wuc:AdminValidator ID="AdminValidator6" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator3" ControlToValidate="STATE_TAX_IF_OTHERTextBox"
                EnableClientScript="true" ErrorMessage="Only decimal value" SetFocusOnError="true"
                ValidationExpression="^([0-9]+)([.]([0-9]{2}))*$">
                <wuc:AdminValidator ID="AdminValidator7" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            ST_STAX_RATE:<br />
            <asp:TextBox ID="ST_STAX_RATETextBox" runat="server" CssClass="text" />
             <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ST_STAX_RATETextBox"
                ErrorMessage="ST_STAX_RATE Required" Display="dynamic" SetFocusOnError="true" EnableClientScript="true"
                Width="1px">
                <wuc:AdminValidator ID="AdminValidator8" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator4" ControlToValidate="ST_STAX_RATETextBox"
                EnableClientScript="true" ErrorMessage="Only decimal value" SetFocusOnError="true"
                ValidationExpression="^([0-9]+)([.]([0-9]{2}))*$">
                <wuc:AdminValidator ID="AdminValidator9" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            CNTY_STAX_RATE:<br />
            <asp:TextBox ID="CNTY_STAX_RATETextBox" runat="server" CssClass="text" />
             <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="CNTY_STAX_RATETextBox"
                ErrorMessage="CNTY_STAX_RATE Required" Display="dynamic" SetFocusOnError="true" EnableClientScript="true"
                Width="1px">
                <wuc:AdminValidator ID="AdminValidator10" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator5" ControlToValidate="CNTY_STAX_RATETextBox"
                EnableClientScript="true" ErrorMessage="Only decimal value" SetFocusOnError="true"
                ValidationExpression="^([0-9]+)([.]([0-9]{2}))*$">
                <wuc:AdminValidator ID="AdminValidator11" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            MAX_OTHER:<br />
            <asp:TextBox ID="MAX_OTHERTextBox" runat="server" CssClass="text" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="MAX_OTHERTextBox"
                ErrorMessage="MAX_OTHER Required" Display="dynamic" SetFocusOnError="true" EnableClientScript="true"
                Width="1px">
                <wuc:AdminValidator ID="AdminValidator12" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator6" ControlToValidate="MAX_OTHERTextBox"
                EnableClientScript="true" ErrorMessage="Only decimal value" SetFocusOnError="true"
                ValidationExpression="^([0-9]+)([.]([0-9]{2}))*$">
                <wuc:AdminValidator ID="AdminValidator13" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            TAX_RATE_TOTAL:<br />
            <asp:TextBox ID="TAX_RATE_TOTALTextBox" runat="server" CssClass="text" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TAX_RATE_TOTALTextBox"
                ErrorMessage="TAX_RATE_TOTAL Required" Display="dynamic" SetFocusOnError="true" EnableClientScript="true"
                Width="1px">
                <wuc:AdminValidator ID="AdminValidator14" runat="server" />
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator7" ControlToValidate="TAX_RATE_TOTALTextBox"
                EnableClientScript="true" ErrorMessage="Only decimal value" SetFocusOnError="true"
                ValidationExpression="^([0-9]+)([.]([0-9]{2}))*$">
                <wuc:AdminValidator ID="AdminValidator15" runat="server" />
            </asp:RegularExpressionValidator>
            <br />
            USE_CANADA:<br />
            <asp:TextBox ID="USE_CANADATextBox" runat="server" CssClass="text" />
            <br />
            TAX_TAX:<br />
            <asp:TextBox ID="TAX_TAXTextBox" runat="server" CssClass="text" />
            <br />
            TAX_SPL_CHG:<br />
            <asp:TextBox ID="TAX_SPL_CHGTextBox" runat="server" CssClass="text" />
            <br />
        </fieldset>
        <div class="btn-place-holder">
            <asp:Button ID="UpdateButton" runat="server" CausesValidation="True" CssClass="btn-regular"
                Text="Update" OnClick="UpdateButton_Click" />
            <br class="clear" />
        </div>
        <br class="clear" />
    </div>
     <script type="text/javascript">
         $(function () {
             $("#<%= VERTEX_UPDT_DATETextBox.ClientID %>").datepicker({
                 changeMonth: true,
                 changeYear: true
             });
             $("#<%= VERTEX_EFF_DATETextBox.ClientID %>").datepicker({
                 changeMonth: true,
                 changeYear: true
             });
         });
    </script>
</asp:Content>
